﻿<UserControl x:Class="ViewFormat"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300" MinWidth="250">
    <StackPanel>

        <GroupBox Header="Type de format" Margin="5" >
            <ComboBox Background="White"  Margin="5" ItemsSource="{Binding TypeFormats}" SelectedItem="{Binding TypeFormat, Mode=TwoWay}"/>
        </GroupBox>

        <GroupBox Header="Groupe de format" Margin="5" >
            <ComboBox Background="White"  Margin="5" ItemsSource="{Binding GroupFormats}" SelectedIndex="{Binding GroupFormat, Mode=TwoWay}"/>
        </GroupBox>

        <GroupBox Header="Nombre de decimales" Margin="5" >
            <DockPanel>
                <Button Focusable="False" Background="White" DockPanel.Dock="Right" Content="  -  " Padding="0" VerticalAlignment="Center" Click="Button_Click_1" />
                <Button Focusable="False" Background="White" DockPanel.Dock="Right" Content="  +  " Padding="0" VerticalAlignment="Center" Click="Button_Click_2" />
                <TextBlock  Background="White"  Margin="5" Text="{Binding Path=DecimalCount}"/>
            </DockPanel>
        </GroupBox>

        <GroupBox Header="Langue" Margin="5" >
            <ComboBox Background="White"   Margin="5" ItemsSource="{Binding Cultures}" SelectedItem="{Binding Culture, Mode=TwoWay}"/>
        </GroupBox>

        <GroupBox Header="Apercu" Margin="5" >
            <TextBlock  Background="White"  Margin="5" Text="{Binding PreviewText}"/>
        </GroupBox>

    </StackPanel>
</UserControl>
